import React from 'react'
import { Outlet, useNavigate } from 'react-router-dom'

import { NavBar } from 'react-vant'
export default function Register() {
  let navigate = useNavigate()
  return (
    <div className='res-box'>
      <NavBar
        title="注册"
        leftText="返回"
        onClickLeft={() => navigate(-1)}
      />
        <Outlet />
    </div>
  )
}
